<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta property="qc:admins" content="376426635762111757757756375" />
	<title>家有狗狗</title>
	<?php $this->addCss('css/bootstrap.min.css') ?>
	<?php $this->addCss('css/bootstrap-theme.css') ?>
	<?php $this->addCss('css/jquery-ui.min.css') ?>
    <?php $this->addCss('css/non-responsive.min.css') ?>
    <?php $this->addCss('css/main.css') ?>
</head>
<body>
<header>
	<nav class="navbar navbar-default">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-menu">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a href="/">
					<img src="/Resource/images/logo2.png" height="52">
				</a>
			</div>
			<div class="collapse navbar-collapse" id="header-menu">
				<ul class="nav navbar-nav">
					<?php foreach($_menu as $key => $arr) {?>
						<li class="<?php echo strtolower($key) == $_currentMenuKey ? 'active' : '' ?>"><a href="<?php echo $arr[1] ?>"><i class="<?php echo empty($arr[2]) ? '' : $arr[2] ?>"></i> <?php echo $arr[0] ?></a></li>
					<?php } ?>
				</ul>
				<?php if ($_currentUserInfo) { ?>
					<ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="" class="text-info">
                                <i class="glyphicon glyphicon-envelope"></i>
                                (0)
                            </a>
                        </li>
						<li>
							<img class="header-img" src="<?php echo !empty($_currentUserInfo['Photo']) ? \Util\User::getUserPhoto($_currentUserInfo['Photo'], 200, 200) : '/Resource/images/nohead_new.jpg'; ?>" />
						</li>
						<li class="dropdown">
							<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
								<?php echo !empty($_currentUserInfo['Username']) ? htmlspecialchars($_currentUserInfo['Username']) : htmlspecialchars($_currentUserInfo['Email']) ?> <span class="caret"></span>
							</a>
							<ul class="dropdown-menu" role="menu">
								<li><a href="/home.html">个人中心</a></li>
								<li><a href="/setting.html">狗狗资料</a></li>
								<li class="divider"></li>
								<li><a href="javascript:;" onclick="loginOut()">退出</a></li>
							</ul>
						</li>
					</ul>
				<?php } else { ?>
					<ul class="nav navbar-nav navbar-right">
						<li><a href="/register.html">注册</a></li>
						<li><a href="/login.html">登录</a></li>
					</ul>
				<?php } ?>
			</div>
		</div>
	</nav>
</header>
<div class="content">